package org.jeecg.modules.oms.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 领料单型材明细表
 */
@Data
@TableName("wms_requisition_profile")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "wms_requisition_profile对象", description = "领料单型材明细表")
public class WmsRequisitionProfileVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**
     * 领料单ID
     */
    @ApiModelProperty(value = "领料单ID")
    private String requisitionId;

    /**
     * 型材编号
     */
    @Excel(name = "型材编号", width = 15)
    @ApiModelProperty(value = "型材编号")
    private String profileCode;

    /**
     * 型材名称
     */
    @Excel(name = "型材名称", width = 20)
    @ApiModelProperty(value = "型材名称")
    private String profileName;

    /**
     * 颜色
     */
    @Excel(name = "颜色", width = 15)
    @ApiModelProperty(value = "颜色")
    private String color;

    /**
     * 长度(mm)
     */
    @Excel(name = "长度(mm)", width = 15)
    @ApiModelProperty(value = "长度(mm)")
    private BigDecimal length;

    /**
     * 宽度(mm)
     */
    @Excel(name = "宽度(mm)", width = 15)
    @ApiModelProperty(value = "宽度(mm)")
    private BigDecimal width;

    /**
     * 高度(mm)
     */
    @Excel(name = "高度(mm)", width = 15)
    @ApiModelProperty(value = "高度(mm)")
    private BigDecimal height;

    /**
     * 数量(根)
     */
    @Excel(name = "数量(根)", width = 15)
    @ApiModelProperty(value = "数量(根)")
    private Integer quantity;

    /**
     * 重量(kg)
     */
    @Excel(name = "重量(kg)", width = 15)
    @ApiModelProperty(value = "重量(kg)")
    private BigDecimal weight;

    /**
     * 备注
     */
    @Excel(name = "备注", width = 30)
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 领料状态（0:未领料,1:已领料,2:部分领料）
     */
    @Excel(name = "领料状态", width = 15, dicCode = "requisition_item_status")
    @ApiModelProperty(value = "领料状态（0:未领料,1:已领料,2:部分领料）")
    @Dict(dicCode = "requisition_item_status")
    private Integer status;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
} 